package nthu.web.model.domain;

import java.io.Serializable;

import nthu.web.model.domain.define.UserInterface;

@SuppressWarnings("serial")
public class User implements UserInterface,Serializable {


    private String username;
    private String password;
    private String name;
    private int sex;
    private User[] friends;
    private Coordinate coordinate; 

    public User(String username, String password){
    	
        this.username = username;
        this.password = password;
    }
    
    public User(String username, Coordinate coordinate){

        this.username = username;
        this.coordinate = coordinate;
    }

    public User(String username, String password, String name, int sex){

        this.username=username;
        this.password=password;
        this.name=name;
        this.sex=sex;
    }



    public void setUsername(String username){
        this.username=username;
    }
    public String getUsername(){
        return username;
    }

    public void setPassword(String password){
        this.password=password;
    }
    public String getPassword(){
        return password;
    }

    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return name;
    }

    public void setSex(int sex){
        this.sex=sex;
    }
    public int getSex(){
        return sex;
    }

    public User[] getFriends(){
    
        return friends;
    }
    public void addFriends(User[] friends){

    }
    public void removeFriends(User[] user){

    }

	public void setCoordinate(Coordinate coordinate) {
		this.coordinate = coordinate;
	}

	public Coordinate getCoordinate() {
		return coordinate;
	}
	
	public String toString(){
		
		return "username : "+ this.username +" , password : "+ this.password ;
	}


}

